package com.ssy.lingxi.member.merchant.model.vo.basic.response;

import java.io.Serializable;
import java.util.Objects;

/**
 * 回显前端省市编码的参数VO
 * @author 万宁
 * @version 2.0.0
 * @date 2020-09-01
 */
public class AreaCodeQueryVO implements Serializable {
    private static final long serialVersionUID = 8300759284811806078L;

    public AreaCodeQueryVO() {
    }

    public AreaCodeQueryVO(String provinceCode, String cityCode) {
        this.provinceCode = provinceCode;
        this.cityCode = cityCode;
    }

    /**
     * 省编码
     */
    private String provinceCode;

    /**
     * 市编码
     */
    private String cityCode;

    public String getProvinceCode() {
        return provinceCode;
    }

    public void setProvinceCode(String provinceCode) {
        this.provinceCode = provinceCode;
    }

    public String getCityCode() {
        return cityCode;
    }

    public void setCityCode(String cityCode) {
        this.cityCode = cityCode;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }
        AreaCodeQueryVO queryVO = (AreaCodeQueryVO) o;
        return provinceCode.equals(queryVO.provinceCode) &&
                cityCode.equals(queryVO.cityCode);
    }

    @Override
    public int hashCode() {
        return Objects.hash(provinceCode, cityCode);
    }
}
